<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <base href="${pageContext.request.contextPath}/"/>
    <title>襄阳蓝芯智能化办公系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        /*定义类名为.thead-blue的样式*/
        .thead-blue {
            color: #fff;
            font-weight: bold;
            background-color: #337ab7;
        }
    </style>
    <link rel="stylesheet" type="text/css" href="view/bootstrap-3.3.5/css/bootstrap.css"/>
    <link rel="stylesheet" type="text/css" href="view/bootstrapvalidator/css/bootstrapValidator.css"/>
    <script charset="utf-8" src="view/jquery/jquery-1.10.2.min.js"></script>
    <script charset="utf-8" src="view/bootstrap-3.3.5/js/bootstrap.js"></script>
    <script charset="utf-8" src="view/bootstrapvalidator/js/bootstrapValidator.js"></script>

</head>
<body>

<!-- 搜索 -->
<div class="panel panel-primary">
    <div class="panel-heading">
        <h4 class="panel-title">审批记录</h4>
    </div>
    <div class="panel-body">
        <div class="row">
            <div class="form-group col-md-12">
                <c:forEach items="${listApproval }" var="a">
                    <div class="col-md-12">
                        <div class="panel panel-primary">
                            <div class="panel-heading" style="text-align: center">
                                    ${a.node.name}</div>
                            <div class="panel-body">
                                <div class="col-md-7">
                                    <c:if test="${a.node.isByDept=='Y' }">
                                        <span class="text-primary">${a.dept.deptName }经理</span>
                                        <span class="text-danger">${a.approvalEmp.empName }</span> 审批
                                    </c:if>
                                    <c:if test="${a.node.isByDept=='N' }">
											<span class="text-primary">${a.node.dept.deptName } --
                                                    ${a.node.job.name }</span>
                                        <span class="text-danger">${a.approvalEmp.empName }</span> 审批
                                    </c:if>
                                </div>
                                <div class="col-md-5">
                                    <span class="text-success">${a.status=='Y'?"审批通过":"" }</span>
                                    <span class="text-danger">${a.status=='N'?"审批不通过":"" }</span>
                                    <span class="text-warning">${a.status=='S'?"待审批":"" }</span>
                                </div>
                                <div class="col-md-12">&nbsp;</div>
                                <div class="col-md-12">审批意见:${a.opinion }</div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-md-offset-3" style="text-align: center">
                        <img src="view/lc/img/next.png" width="38px"> <BR> <BR>
                    </div>
                </c:forEach>
            </div>

            <div class="form-group col-md-12">
                <div class="col-md-6  col-md-offset-3" style="text-align: center">
                    <button type="button" onclick="history.back()" class="btn btn-default">返回</button>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>